@right-width: 450px;
@right-size: 450px;
.d3-tree-wrapper {
    height: 100%;
    position: relative;
    .right {
        background: #fff;
        overflow: hidden;
    }
    .d3-tree {
        overflow: hidden; // margin: 16px;
        position: absolute;
        left: 0px;
        right: 0px;
        top: 0px;
        bottom: 0px;
    }
    &.with-toggle {
        .d3-tree {
            top: 50px;
        }
    }
    &.with-right {
        .right {
            position: absolute;
            right: 0px;
            width: @right-width;
            display: block;
            margin-left: 8px;
            transition: 0.3s;
            top: 50px;
            bottom: 0px; // border-left: 1px solid #efefef;
            box-shadow: 0 9px 12px -2px rgba(39, 54, 78, 0.11);
            z-index: 100;
        }
        .d3-tree {
            height: e("calc(100% - 82px)");
            overflow: hidden; // margin: 16px;
            position: absolute;
            left: 0px;
            right: 0px; // margin-right: 8px;
        }
    }
    .node {
        cursor: pointer;
    }
    /* .link {
        fill: none;
        stroke: #ccc;
        stroke-width: 1.5px;
        &.link-selected {
            stroke: #2db7f5;
        }
        &-over {
            stroke: #2db7f5;
        }
    } */
    .node-selected {
        .node-rect {
            stroke: #2db7f5;
        }
    }
}

.edc-tree-memu-item {
    &:hover {
        background-color: #57c5f7;
        color: #fff;
    }
    .wea-right-menu-icon {
        display: inline-block;
        width: 36px;
        margin-right: 6px;
        text-align: center;
    }
}

.d3-tree-add {
    position: absolute;
    border-radius: 50%;
    padding: 5px 8px;
    display: none;
}

.d3-tree-tips {
    &>div {
        -webkit-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);
        -moz-box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.3);
        background: #fff;
        padding: 16px;
    }
    .tips-handle {
        cursor: pointer;
        &:hover {
            color: #2db7f5;
        }
    }
    .tips-opts {
        position: absolute;
        right: 10px;
        bottom: 10px;
        button {
            padding: 5px 8px;
            border-radius: 50%;
            margin-left: 10px;
        }
    }
}

.d3-tree-toggle {
    .ant-radio-button-wrapper-checked {
        background: #2db7f5;
        color: #fff;
    }
    .ant-radio-button-wrapper {
        border-radius: 0px;
        padding: 0px 8px;
    }
    .ant-radio-button-wrapper:first-child {
        border-radius: 3px 0px 0px 3px;
    }
    .ant-radio-button-wrapper:last-child {
        border-radius: 0px 3px 3px 0px;
    }
    .ant-btn-group,
    .ant-radio-group {
        padding: 10px 0px;
        margin-right: 10px;
        float: left;
        position: relative;
    }
    .ant-btn-group {
        .opt-btn {
            margin-right: 10px;
            &:last-child {
                margin-right: 0px;
            }
        }
        &.linked {
            .opt-btn {
                margin-right: 0px;
            }
        }
    }
    .opt-btn {
        padding: 4px 8px; // border-radius: 0px;
    }
}

.border-selection {
    position: fixed;
    border: 1px solid #2db7f5;
}